--[[ Copyright 2012, Chris Ho                               ]]--
--[[ MIT License (Please read the LICENSE file for details) ]]--

Use("common/Log");
Use("common/Task");
Use("common/Pet");
Use("common/Skill");

-- I am a Lif.
local name = "LIF";
local Initialize, status = loadfile(PERSONALITY_HOMUNCULUS);
Info(name .. ": trying homunculus personality");
if (Initialize == nil) then
  Info(name .. ": trying default personality (" .. status .. ")");
  Initialize, status = loadfile(PERSONALITY_DEFAULT);
  if (Initialize == nil) then
    Alert(name .. ": " .. status);
    return nil;
  end
end

-- Initialize base personality.
--local instance = Initialize(...);
--local instance = Initialize(arg[1]);
local instance = Initialize();



--[[ Select an attack for this target ]]--
-- Note: override this function with skill specific to each pet.
function instance:ChooseAttack(_target)
  return Skill.None(self.id);
end

Info(name .. " Loaded");
return instance;
